lagrange's theorem examples